<template>
	<view>
		<view class="cu-bar bg-white solid-bottom margin-top">
			<view class="action">
				<text class="cuIcon-title text-red">你好，{{ name }}同学</text>
			</view>
		</view>
		<view class="content">
			<view class="cu-list grid col-2 css1">
				<view class="cu-item" @click="click1()">
					<view class="cuIcon-circlefill text-red">
					</view>
					<text>任务列表</text>
				</view>
				<view class="cu-item" @click="click2()">
					<view class="cuIcon-cardboardfill text-red">
					</view>
					<text>任务情况</text>
				</view>
				<view class="cu-item" @click="click3()">
					<view class="cuIcon-btn text-red">
					</view>
					<text>评论列表</text>
				</view>
				<view class="cu-item" @click="click4()">
					<view class="cuIcon-discoverfill text-red">
					</view>
					<text>排行榜</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				name: ""
			}
		},
		onLoad: function(option) {
			this.name = option.item;
		},
		methods: {
			click1() {
				uni.navigateTo({
					url: '/pages/student/task-list'
				});
			},
			click2() {
				uni.navigateTo({
					url: '/pages/student/task-exec-list'
				});
			},
			click3() {
				uni.navigateTo({
					url: '/pages/student/evaluate-list'
				});
			},
			click4() {
				uni.navigateTo({
					url: '/pages/student/rank-list'
				});
			}
		}
	}
</script>

<style>
	.css1 {
		height: 200px;
	}

/* 	.content {
		position: absolute;
		top: 40%;
		height: 240px;
		margin-top: -120px;
		border-radius: 25px;
	} */
</style>
